<?php

/*
demo.php [qqwry.dat]
Array
(
    [beginip] => 202.102.152.3
    [endip] => 202.102.152.3
    [country] => 山东省济南市
    [area] => 联通DNS服务器
)
*/
require_once "./api.php";

$ip = new czip();
$addr = $ip -> ip2addr('202.102.152.3');
//$addr = $ip -> ip2addr('114.114.114.114');
$address = $addr['country'];
var_dump($address);

if(strstr($address,'济南')){
        echo "济南的地址\n";
}

